home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / New System Software Extensions / OpenDoc A6 / SOM / OpenDoc and SOM / IDL / PstObj.idl < prev    next >
Encoding:
Text File  |  1994-04-19  |  1.7 KB  |  70 lines  |  [TEXT/MPS ]

  1. //# Copyright:    © 1993-94 by Apple Computer, Inc., all rights reserved.
  2. #ifndef _PSTOBJ_
  3. #define _PSTOBJ_
  4.  
  5. #ifndef _REFCTOBJ_
  6. #include "RefCtObj.idl"
  7. #endif
  8.  
  9. //==============================================================================
  10. // Theory of Operation
  11. //==============================================================================
  12.  
  13. /*
  14.   This file defines class ODPersistentObject.  This class is the common base
  15.   class for all OpenDoc classes whose objects require persistent storage.
  16. */
  17.  
  18. //==============================================================================
  19. // Classes defined in this interface
  20. //==============================================================================
  21.  
  22. interface  ODPersistentObject;
  23.  
  24. //==============================================================================
  25. // Classes used by this interface
  26. //==============================================================================
  27.  
  28. interface  ODStorageUnit;
  29.  
  30. //==============================================================================
  31. // ODPersistentObject
  32. //==============================================================================
  33.  
  34. interface ODPersistentObject :  ODRefCntObject
  35. {
  36.   void  InitPersistentObject(in ODStorageUnit storageUnit);
  37.  
  38.   void  InitPersistentObjectFromStorage(in ODStorageUnit storageUnit);
  39.     
  40.   void  ReleaseAll();
  41.   
  42.   void  Externalize();
  43.                   
  44.   ODStorageUnit  GetStorageUnit();
  45.     
  46.   ODID   GetID();
  47.   
  48. #ifdef __SOMIDL__
  49.     implementation
  50.     {
  51.       override:
  52.         somInit,
  53.         somUninit;
  54.     
  55.     releaseorder:
  56.         InitPersistentObject,
  57.         InitPersistentObjectFromStorage,
  58.         ReleaseAll,
  59.         Externalize,
  60.         GetStorageUnit,
  61.         GetID;
  62.         
  63.     
  64.   };
  65. #endif
  66. };
  67.  
  68. #endif //# _PSTOBJ_
  69.  
  70.